<%@page import="com.jframe.cfg.service.RolefunService"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="java.util.List" %>
<%@ page import="com.jframe.cfg.model.Rolefun" %>
<%@ page import="com.jframe.cfg.model.Fun" %>
<%@ page import="com.jframe.sys.utils.SpringUtil" %>
<%@ page import="com.jframe.sys.utils.StringUtil" %>
<%@ page import="com.jframe.cfg.service.FunService" %>
<%@ page import="com.jframe.cfg.service.RolefunService" %>
<%
	int IframeId =  StringUtil.parseInt(request.getParameter("iframeId_"));
	if(IframeId>0){
		RolefunService rolefunService = (RolefunService)SpringUtil.getBean("rolefunService");
		Rolefun rolefun = rolefunService.load("iframeId", IframeId);
		FunService  funService = (FunService)SpringUtil.getBean("funService");
	
		List<Fun> funlist = funService.findListByIds(StringUtil.null2Space(rolefun.getFunIds()));
		for(Fun fun:funlist){
%>
	<a class="easyui-linkbutton" iconCls="<%=fun.getIconCls() %>" plain="true" onclick="<%=fun.getJs()%>"><%=fun.getName() %></a>
<%
		} 
	}
%>
